package com.bps.zzant.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bps.zzant.dao.ProductDAO;
import com.bps.zzant.model.Product;

@Service
@Transactional

public class ProductServiceImpl implements ProductService {
	
	@Autowired
	ProductDAO productDAO;
	
	
	public List getProductByStyleNo(String styleNo) {
		// TODO Auto-generated method stub
		return productDAO.getProductByStyleNo(styleNo);
	}
	
	public List<Product> getAllProducts(){
		return productDAO.getAllProducts();
	}
	
	public List getProductByDescription(String desc){
		return productDAO.getProductByDescription(desc);
	}
	
	public void updateProduct(Product product){
		productDAO.updateProduct(product);
	}
	
	public void saveProduct(Product product){
		productDAO.saveProduct(product);
	}
}
